//
//  NKCaseSelectTableViewCell.m
//  NewKY
//
//  Created by MXQ on 2016/11/14.
//  Copyright © 2016年 Dee. All rights reserved.
//

#import "NKCaseSelectTableViewCell.h"
#import "UILabel+CZAddition.h"
@implementation NKCaseSelectTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self setupCaseSelectTableViewCell];
        
        
    }
    return  self;

}

- (void)setupCaseSelectTableViewCell{

    
    //疾病标签
    UILabel * lable = [[UILabel alloc]init];
    
    
    
    
    [self.contentView addSubview:lable];
    
    [lable mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.equalTo(self.contentView).offset(52);
        make.centerY.equalTo(self.contentView);
        
    }];

    self.illLable = lable;
    
    //选择标签
    
    UILabel * choiceLb = [[UILabel alloc]init];
    
    choiceLb.font = [UIFont systemFontOfSize:15];
    choiceLb.textColor = [UIColor lightGrayColor];
    
    [self.contentView addSubview:choiceLb];
    
    [choiceLb mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.right.equalTo(self.contentView).offset(-28);
        
        make.centerY.equalTo(self.contentView);
        
    }];
    
    self.choiceLable = choiceLb;
    
    
    //more
    UIButton * moreBrn= [[UIButton alloc]init];
    
    [moreBrn setImage:[UIImage imageNamed:@"position-right"] forState:UIControlStateNormal];
    
    [self.contentView addSubview:moreBrn];
    
    [moreBrn mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.equalTo(self.contentView).offset(6);
        make.right.bottom.equalTo(self.contentView).offset(-6);
        make.width.equalTo(@20);
        
        
    }];
    
    

    UIImageView* imgV = [[UIImageView alloc]init];
    

    [imgV setImage:[UIImage imageNamed:@"ic_assignment_2x"]];
    
//    [imgV sizeToFit];
    
    [self.contentView addSubview:imgV];
    
    [imgV mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.equalTo(self.contentView).offset(7);
        make.bottom.equalTo(self.contentView).offset(-10);
        make.width.equalTo(@22.5);
        make.top.equalTo(self.contentView).offset(8);
    }];
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
